package com.dony.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dony.shop.domain.PublishTask;
import com.dony.shop.domain.vo.GlobalProductVo;

import java.util.List;

/**
 * 各站点价格配置Service接口
 *
 * @author sundw
 * @date 2022-08-30
 */
public interface IPublishTaskService extends IService<PublishTask> {


    /**
     * 批量发布全球商品
     *
     * @param products
     * @return
     */
    Boolean publishBatch(List<GlobalProductVo> products);

    /**
     * 条件查询
     *
     * @param publishTask
     * @return
     */
    List<PublishTask> listByParam(PublishTask publishTask);

    /**
     * 通过发布表同步发布及商品状态
     *
     * @param publishTask
     * @return
     */
    List<PublishTask> sycnStatus(Long[] publishTask);

    /**
     *  检查并删除发布记录
     * @param publishTaskIds
     * @return
     */
    Boolean checkAndRemoveByIds(List<Long> publishTaskIds);
}
